<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function interval(callback, delay = 100) {
        let id = setInterval(() => callback(id), delay);
        console.log("id ---", id);
      }

      //   interval((id) => {
      //     console.log(id);
      //   });

      console.dir(
        setInterval(() => {}),
        10000
      );

      console.log(window.id);
    </script>
  </body>
</html>
